/**
 * @author ckf
 * @create 2018 05 16 13:10
 * @desc
 **/
public class homework2 {
    public void run() {
        for (int i = 1; i <= 50; i++) {
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("NEW");
        }
    }
}

class Test2 {
    public static void main(String[] args) {
        Thread mainLine = Thread.currentThread();
        Thread t2 = new Thread();
        t2.start();
        for (int i = 1; i <= 100; i++) {
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("main");
        }
    }


}

